package com.tuanzi.loan.web.lazy.family;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.family.UserMobileExportService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.UserMobileExportSearchRequest;
import com.tuanzi.loan.vo.response.family.UserMobileExportSearchResponse;


@SuppressWarnings("serial")
public class UserMobileExportLazyDataModel extends BaseLazyDataModel<UserMobileExportSearchRequest, UserMobileExportSearchResponse> {

	private UserMobileExportService userMobileExportService=SpringContextHolder.getBean(UserMobileExportService.class);
	
    public UserMobileExportLazyDataModel(UserMobileExportSearchRequest searchRequest) {
        super(searchRequest);
    }
    
    @Override
    protected Page<UserMobileExportSearchResponse> doLoad(
            PageSearcher<UserMobileExportSearchRequest> pageSearcher) {
    	 
    	return userMobileExportService.list(pageSearcher);
    }
}
